﻿#include "lineItem.h"
#include <QPainter>

lineItem::lineItem(QRectF rect, bool isParent)
{
	m_ItemSize = QSizeF(rect.width(), rect.height());
	m_CurrentScenePos = rect.topLeft();
	//m_ItemRatio = m_ItemSize.width() / m_ItemSize.height();
}

lineItem::~lineItem()
{}

QRectF lineItem::boundingRect() const
{
	return QRectF();
}

void lineItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
	painter->setRenderHint(QPainter::Antialiasing, true);
	painter->setRenderHint(QPainter::SmoothPixmapTransform, true);

	QColor redColor = QColor(Qt::red);
	painter->setPen(QPen(redColor, 0, Qt::DashLine));
	painter->setBrush(Qt::NoBrush);
}
